package MyProject.WangYiYun;

import java.util.List;

public class Song {

    private String id;

    private String name;

    private String singer;

    private String comments;

    private List<Comment> commentList;

    public Song() {
    }

    public Song(String name, String singer) {
        this.name = name;
        this.singer = singer;
        this.comments = "0";
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    @Override
    public String toString() {
        return "Song{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", singer='" + singer + '\'' +
                ", comments='" + comments + '\'' +
                ", commentList=" + commentList +
                '}';
    }
}
